<!DOCTYPE html>
<html>
<head>
    <title>门店耗材盘点表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <el-button type="primary"  @click="add" size="small">盘点记录新增</el-button>
            <el-button type="primary" @click="edit" size="small">修改</el-button>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <el-card class="box-card">
            <div style="text-align:center" class="text item">
                <el-button type="primary" id="saveBtn" @click="checkSave" size="small">提交</el-button>
                <el-button type="primary" @click="goBack" size="small">返回</el-button>
            </div>
        </el-card>
        <template>
            <el-table size="small" height="750" :data="storeMaterialCheckDetailVoList" border style="width: 100%">
                <el-table-column prop="materialId" align="center" label="耗材id" width="180"></el-table-column>
                <el-table-column prop="materialName" align="center" label="耗材名称" width="180"></el-table-column>
                <el-table-column prop="specifications" align="center" label="规格" width="180"></el-table-column>
                <el-table-column prop="materialModel" align="center" label="型号" width="180"></el-table-column>
                <el-table-column prop="length" align="center" label="长" width="180"></el-table-column>
                <el-table-column prop="width" align="center" label="宽" width="180"></el-table-column>
                <el-table-column prop="weight" align="center" label="克重" width="100"></el-table-column>
                <el-table-column prop="unit" align="center" label="单位" width="100"></el-table-column>
                <el-table-column prop="status" v-if="mark.statusMark" align="center" label="审核状态" :formatter="formatterStatus" width="130"></el-table-column>
                <el-table-column prop="systemQuantity" align="center" label="系统数量" width="160"></el-table-column>
                <el-table-column align="center" label="实际数量" width="160">
                    <template slot-scope="scope">
                        <div v-if="!mark.statusMark">
                            <el-input size="mini" @blur="calculateMaterial(scope.$index)"  v-model="scope.row.actualQuantity"/>
                        </div>
                        <div v-if="mark.statusMark">
                            <el-input size="mini" @blur="calculateMaterial(scope.$index)" :disabled="scope.row.status == 1?false:true" v-model="scope.row.actualQuantity"/>
                        </div>
                    </template>
                </el-table-column>
                <el-table-column  align="center" label="盘点情况" width="120">
                    <template slot-scope="scope">
                        <!--<el-input size="mini" v-model="scope.row.checkResult"/>-->
                        <lable style="color:green;" v-if="scope.row.checkResult > 0">盘盈 : {{scope.row.checkResult}}</lable>
                        <lable style="color:red;" v-if="scope.row.checkResult < 0">盘亏 : {{scope.row.checkResult}}</lable>
                    </template>
                </el-table-column>
            </el-table>
        </template>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/storeMaterialCheck/storematerialcheck.js?_${.now?long}"></script>
</body>
</html>